package com.whfc.hdc.enums;

/**
 * @author qzexing
 * @version 1.0
 * @date 2021-04-08 17:15
 */
public enum FshControlType {

    LIGHT(1, "照明"),

    BROADCAST(2, "广播"),

    VOICE(3, "语音"),

    VIDEO(4, "视频");


    private final Integer value;

    private final String desc;

    FshControlType(Integer value, String desc) {
        this.value = value;
        this.desc = desc;
    }

    public Integer getValue() {
        return value;
    }

    public String getDesc() {
        return desc;
    }

    public static FshControlType parseValue(Integer value) {
        FshControlType[] values = FshControlType.values();
        for (FshControlType fshControlType : values) {
            if (fshControlType.value.equals(value)) {
                return fshControlType;
            }
        }
        return null;
    }


}
